import {BasicColumn} from '/@/components/Table';

//列表数据
export const columns: BasicColumn[] = [
  {
    title: '账户信息',
    align: "center",
    dataIndex: 'account',
    width: 240,
    slots: {customRender: "accountSlot"}
  },
  {
    title: '服务公司',
    align: "center",
    width: 160,
    dataIndex: 'serviceCompanyId_dictText'
  },
  {
    title: '一档税率(%)',
    align: "center",
    width: 90,
    dataIndex: 'taxRate',
    customRender: ({text}) => {
      return !text ? "0.0000" : (parseFloat(text) * 100).toFixed(4);
    },
  },
  {
    title: '二挡税率(%)',
    align: "center",
    width: 90,
    dataIndex: 'taxRateTwo',
    customRender: ({text}) => {
      return !text ? "0.0000" : (parseFloat(text) * 100).toFixed(4);
    },
  },
  {
    title: '余额',
    align: "center",
    width: 100,
    dataIndex: 'balance',
    customRender: ({text}) => {
      return !text ? "0.00" : parseFloat(text).toFixed(2);
    },
  },
  {
    title: '创建时间',
    align: "center",
    width: 100,
    dataIndex: 'createTime'
  },
];

//付款白名单列表数据
export const whiteListColumns: BasicColumn[] = [
  {
    title: '关联户名',
    align: "center",
    dataIndex: 'dmanam',
  },
  {
    title: '关联账号',
    align: "center",
    dataIndex: 'rltacc'
  },
  {
    title: '关联状态',
    align: "center",
    dataIndex: 'stscod',
    slots: {customRender: "stscodSlot"}
  },
  {
    title: '入账方式',
    align: "center",
    dataIndex: 'tlyopr',
    slots: {customRender: "tlyoprSlot"}
  },
];
